package com.fowo.api.model.other.payables;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 其他应付款 导入导出辅助模型 */
@Getter
@Setter
public class OtherPayablesExcelPo {

  @Size(max = 50, message = "其他应付单号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "其他应付单号")
  private String otherPayablesCode;

  @Size(max = 50, message = "费用单号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "费用单号")
  private String feeCode;

  @NotBlank(message = "应付对象不能为空")
  @Size(max = 50, message = "应付对象长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*应付对象")
  private String shouldObj;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "状态")
  private String status;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "应付费用类型")
  private String shouldFeeType;

  @ExcelProperty(value = "应付金额")
  private java.math.BigDecimal shouldMoney;

  @ExcelProperty(value = "已付金额")
  private java.math.BigDecimal actuallyPaid;

  @ExcelProperty(value = "未付金额")
  private java.math.BigDecimal unpaidMoney;

  @ExcelProperty(value = "申请中")
  private java.math.BigDecimal inApplication;

  @ExcelProperty(value = "未申请")
  private java.math.BigDecimal notApply;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "费用提交人")
  private String feeSubmitterName;

  @ExcelIgnore
  @ExcelProperty(value = "费用提交人")
  private Long feeSubmitter;

  @DateTimeFormat("yyyy年MM月dd日")
  @ExcelProperty(value = "预计付款时间")
  private java.util.Date predictFkTime;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "支付方式")
  private String payType;

  @Size(max = 50, message = "户名长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "户名")
  private String userName;

  @Size(max = 50, message = "开户行长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "开户行")
  private String bankOfDeposit;

  @Size(max = 50, message = "账户长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "账户")
  private String account;

  @Size(max = 50, message = "备注长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "备注")
  private String remarks;
}
